package com.bd.rj.frontstage.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bd.rj.common.entity.Collections;

import com.bd.rj.common.entity.Post;
import com.bd.rj.frontstage.mapper.CollectionsMapper;
import com.bd.rj.frontstage.service.ICollectionsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class CollectionsServiceImpl extends ServiceImpl<CollectionsMapper, Collections> implements ICollectionsService {
    @Autowired
    private CollectionsMapper collectionsMapper;
    /**
     * @desc 查询收藏的岗位信息
     * @author yxh
     * @param uid
     * @return
     */
    @Override
    public List<Map<String, Object>> getAllCollections(Long uid) {
        return collectionsMapper.selectByUidAndType(uid);
    }

    @Override
    public void batchDeleteByIds(List<Long> idList) {

        collectionsMapper.batchDeleteByIds(idList);
    }


}
